﻿<UserControl x:Class="ThanNhanTao.CommonControl.CalendarControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <Grid Width="350" Height="80">
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="90"></ColumnDefinition>
            <ColumnDefinition Width="110"></ColumnDefinition>
            <ColumnDefinition Width="40"></ColumnDefinition>
            <ColumnDefinition Width="110"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <RadioButton Name="rdbTheoNgay" Grid.Row="0" Grid.Column="0" Content="Theo ngày" VerticalAlignment="Center" IsChecked="True" HorizontalAlignment="Left" Checked="User_Event" />
        <dxe:DateEdit Name="dpTuNgay" Grid.Row="0" Grid.Column="1" TabIndex="4" HorizontalAlignment="Left" Width="100" VerticalAlignment="Center" Mask="dd/MM/yyyy" MaskType="DateTimeAdvancingCaret" MaskAutoComplete="Optimistic" MaskCulture="vi-VN" DisplayFormatString="dd/MM/yyyy" EditValueChanged="dpTuNgay_EditValueChanged" />
        <Label Grid.Row="0" Content="Đến" Grid.Column="2" VerticalAlignment="Center" Height="23.277" HorizontalAlignment="Left" />
        <dxe:DateEdit Name="dpDenNgay" TabIndex="4" Grid.Column="3" HorizontalAlignment="Left" Width="100" VerticalAlignment="Center" Mask="dd/MM/yyyy" MaskType="DateTimeAdvancingCaret" MaskAutoComplete="Optimistic" MaskCulture="vi-VN" DisplayFormatString="dd/MM/yyyy" EditValueChanged="dpTuNgay_EditValueChanged" />
        <RadioButton Name="rdbTheoThang" Grid.Row="1" Grid.Column="0" Content="Theo tháng" VerticalAlignment="Center" HorizontalAlignment="Left" Checked="User_Event" />
        <dxe:ComboBoxEdit Name="cboThang" Grid.Column="1" Grid.Row="1" IsTextEditable="False" VerticalAlignment="Center" HorizontalAlignment="Left" Width="100" SelectedIndexChanged="User_Event" />
        <Label Grid.Row="1" Content="Năm" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Left" />
        <dxe:ComboBoxEdit Name="cboNamThang" Grid.Column="3" Grid.Row="1" IsTextEditable="False" VerticalAlignment="Center" HorizontalAlignment="Left" Width="100" SelectedIndexChanged="User_Event" />
        <RadioButton Name="rdbTheoQuy" Grid.Row="2" Grid.Column="0" Content="Theo quý" VerticalAlignment="Center" HorizontalAlignment="Left" Checked="User_Event" />
        <dxe:ComboBoxEdit Name="cboQuy" Grid.Row="2" Grid.Column="1" IsTextEditable="False" VerticalAlignment="Center" HorizontalAlignment="Left" Width="100" SelectedIndexChanged="User_Event" />
        <Label Grid.Row="2" Content="Năm" Grid.Column="2" VerticalAlignment="Center" Height="23.277" HorizontalAlignment="Left" />
        <dxe:ComboBoxEdit Name="cboNamQuy" Grid.Column="3" Grid.Row="2" IsTextEditable="False" VerticalAlignment="Center" HorizontalAlignment="Left" Width="100" SelectedIndexChanged="User_Event" />
    </Grid>
</UserControl>
